using Microsoft.Xna.Framework;
using SCSEngine.Utils.Entities.Component;
using SCSEngine.Utils.Entities.Component.Camera2D;
using SCSEngine.Utils.Entities.Process;
using SCSEngine.Utils.Entities.Process.Update;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SCSEngine.Utils.Entities
{
    public class Camera2DEntity : GameEntity
    {
        private Camera2DComponent cameraComponent;

        public Camera2DComponent CameraComponent
        {
            get { return cameraComponent; }
        }

        public Camera2DEntity(Game game)
        {
            this.cameraComponent = new Camera2DComponent(game);
            this.AddComponent(ComponentKeys.Camera2D, this.cameraComponent);

            this.AddProcess<IUpdateable>(new Camera2DUpdate(this));
        }
    }
}
